DateTime
PHP Manual

DateTime::getTimestamp

(PHP 5 >= 5.3.0)

DateTime::getTimestampGets the Unix timestamp

Descripción

public int DateTime::getTimestamp ( void )

Gets the Unix timestamp.

Lista de parámetros

This function has no parameters.

Valores retornados

Returns Unix timestamp representing the date.

Ver también


DateTime
PHP Manual